function [] = Circle(r) %writing function to accept 1 input variable r and zero output variables having name Circle
c = zeros(512:512); %Initialize the c matrix to all zeros (black colour)
for x = 1 : 512
    for y = 1 : 512
        if ((((x-256)^2+(y-256)^2)^0.5) >r) % check if dist of pixel from center is greater than radius
            c(x,y) = 0; %if greater then set pixel colour as black
        
        else
            c(x,y) = 1; % else set pixel colour as white
        end
    end
end
str = sprintf('Circle With Radius = %i',r);
imshow(c),title(str); %show the obtained image i.e. content of matrix c
end
